<template>
    <div class="app-container">
        <!-- 流水单信息 -->
        <h5 class="titleInfo">
            流水单信息
        </h5>
        <el-form ref="list1" :inline="true" :model="list1" label-width="130px">
            <el-row>
                <el-col :span="12">
                    <el-form-item label="流水单号">
                        <span class="spanToInput">{{list1.nickName | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="预约单号">
                        <span class="spanToInput">{{list1.username | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="流水单类型">
                        <span class="spanToInput">{{list1.username | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="预约医院">
                        <span class="spanToInput">{{list1.realname | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="单数">
                        <span class="spanToInput">{{list1.sex | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="创建日期">
                        <span class="spanToInput">{{list1.sex | filterNull}}</span>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
        <!-- 人员信息 -->
        <div class="divBar"></div>
        <h5 class="titleInfo">
            人员信息
        </h5>
        <el-form ref="list1" :inline="true" :model="list1" label-width="130px">
            <el-row>
                <el-col :span="12">
                    <el-form-item label="客户姓名">
                        <span class="spanToInput">{{list1.refereeName | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="客户手机号">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="推荐人姓名">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="推荐人手机号">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="团队姓名">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="团队手机号">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="管家姓名">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="管家手机号">
                        <span class="spanToInput">{{list1.referee | filterNull}}</span>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
        <!-- 支付信息 -->
        <div class="divBar"></div>
        <h5 class="titleInfo">
            支付信息
        </h5>
        <el-form ref="list1" :inline="true" :model="list1" label-width="130px">
            <el-row>
                <el-col :span="12">
                    <el-form-item label="扣除杂费金额">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="消费总金额">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <p style="margin: 0;color: #999;font-size: 10px;margin-top: -20px;margin-left: 130px">扣除杂费金额修改有流水记录，其他金额修改没有</p>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="现金补贴">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="积分补贴">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="备注">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="支付凭证">
                        <el-input></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item>
                        <el-button style="margin-top:30px;margin-left:130px" type="primary" @click="submitFn('form')" >立即提交</el-button>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
    </div>
</template>
<script>
    import { vipInfo } from '@/api/vipInfo' 
    export default {
        name:"runWaterManageEdit",
        data(){
            return {
                val:"1",
                userId:"",
                list1:{},
                list2:[],
                list3:{}
            }
        },
        filters:{
            filterNull(e) {
                if(!e){
                    return "暂无"
                }else{
                    return e
                }
            },
            cardNull(e){
                return window.helper.cardType(e)
            },
            userFocus(e){
                return window.helper.userFocus(e)
            }
        },
        mounted(){
            this.userId = Number(this.$route.query.userId)
            this.getList()
        },
        methods:{
            getList(){
                let datas = {userId:this.userId}
                // vipInfo(datas).then().then(res =>{
                //     console.log(res)
                //     if(!res.data.code){
                //         if(res.data.data.user){
                //             this.list1 = res.data.data.user
                //         }
                //         if(res.data.data.bankCard){
                //             this.list2 = res.data.data.bankCard
                //         }
                //         if(res.data.data.userExtra){
                //             this.list3 = res.data.data.userExtra
                //         }
                //     }else{
                //         this.$message.error("数据接口访问失败");
                //     }
                // })
                // .catch(error =>{
                //     this.$message.error(error);
                // })
            }
        }
    }
</script>

<style scoped>
    .app-container{padding: 0px!important}
    .form{margin-left: 268px}
</style>